package model.kml;

public class LineString {
	
	private String id;
	private int extrude;
	private int tesselate;
	private String coordinates;
	
	
	
	public String toString(){
		String placeString = "";
		if(this.id != null) {
			placeString = "<LineString id=\""+this.id+"\">\n";
		}
		else {
			placeString = "<LineString>";
		}
		placeString += "<tessellate>" + tesselate + "</tessellate>";
		placeString += "<extrude>" + extrude + "</extrude>";
		placeString += "<altitudeMode>clampToGround</altitudeMode>";
		placeString += "<coordinates>" +coordinates + "</coordinates>" ;
		placeString += "</LineString>\n";
		return placeString;
			   
	}



	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}



	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}



	/**
	 * @return the extrude
	 */
	public int getExtrude() {
		return extrude;
	}



	/**
	 * @param extrude the extrude to set
	 */
	public void setExtrude(int extrude) {
		this.extrude = extrude;
	}



	/**
	 * @return the tesselate
	 */
	public int getTesselate() {
		return tesselate;
	}



	/**
	 * @param tesselate the tesselate to set
	 */
	public void setTesselate(int tesselate) {
		this.tesselate = tesselate;
	}



	/**
	 * @return the coordinates
	 */
	public String getCoordinates() {
		return coordinates;
	}



	/**
	 * @param coordinates the coordinates to set
	 */
	public void setCoordinates(String coordinates) {
		this.coordinates = coordinates;
	}



}
